<!-- 个人页面设置组件 -->
<template>
  <div class="setting">
    <div class="setting-item">
      <div class="wallet tag">
        <img src="@/images/money.png" alt="">
      </div>
      <div class="item-text">我的钱包</div>
      <i class="iconfont">&#xe60e;</i>
    </div>
    <div class="setting-item" @click="$router.push({name:'address'})">
      <div class="location tag">
        <img src="@/images/address.png" alt="">
      </div>
      <div class="item-text">我的地址</div>
      <i class="iconfont">&#xe60e;</i>
    </div>
    <div class="setting-item">
      <div class="help tag">
        <img src="@/images/help.png" alt="">
      </div>
      <div class="item-text">客服与帮助</div>
      <i class="iconfont">&#xe60e;</i>
    </div>
  </div>
</template>

<script>
//composition
export default {
  name: 'setting'
}
</script>

<style scoped lang="scss">
@import '@/styles/mixin.scss';

.setting {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;

  &-item {
    height: 5.8667vw;
    display: flex;
    align-items: center;
    justify-content: space-between;

    .item-text {
      flex: auto;
      font-size: 14px;
      color: #262626;
    }

    &+.setting-item {
      margin-top: 24px;
    }

    .tag {
      height: 5.8667vw;
      width: 5.8667vw;
      border-radius: 8px;
      @include item-center;
      margin-right: 3.2vw;

      img {
        width: 60%;
        margin: 0 auto;
      }
    }

    .wallet {
      background: #ED4A47;
    }

    .location {
      background: #32C5FF;
    }

    .help {
      background: #9013FE;
    }

    .iconfont {
      color: #C2C4CA;
      font-size: 12px;
    }
  }
}
</style>